#include "Cubo.h"


void Cubo::draw(){

	//Face Z
	glPushMatrix();
	glBegin(GL_POLYGON);
		glNormal3f(0.0,0.0,1.0);
		glVertex3f(-0.5,-0.5,0.5);
		glVertex3f(0.5,-0.5,0.5);
		glVertex3f(0.5,0.5,0.5);
		glVertex3f(-0.5,0.5,0.5);
	glEnd();

	glPushMatrix();
	glBegin(GL_POLYGON);
		glNormal3f(0.0,0.0,-1.0);
		glVertex3f(-0.5,-0.5,-0.5);
		glVertex3f(-0.5,0.5,-0.5);
		glVertex3f(0.5,0.5,-0.5);
		glVertex3f(0.5,-0.5,-0.5);
		
	glEnd();
}